﻿<%sub newdiary%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<%if Request.QueryString("step")="" then%>
<form action="?Fmenu=newdiary&step=2" method="POST">
<font face="微软雅黑">在新建日志之前,您需要选择日志所属分类<br />
<select size="1" name="kda" id="kda"><%for i=0 to dknum%>
<option><%Response.Write diarykind.childNodes.item(i).text%></option>
<%next%></select><a href="?Fmenu=newkind">增加</a></font> <input type="submit" value="提交">
</form>
<%else%>
<form action="?Fmenu=savediary" method="POST" target="_self">
	<h1>日志编辑</h1>
	<p></p>
	<table width="528" border="0" cellspacing="1">
		<tr>
			<td>标题</td>
			<td width="460">
			<input type="text" name="name" id="name" size="36" /></td>
		</tr>
		<tr>
			<td width="61">时间</td>
			<td>
			<input type="text" name="time" value="<%response.write Now()%>" id="time" size="36" /></td>
		</tr>
		<tr>
			<td width="61">tags</td>
			<td><input type="text" name="tags" id="tags" size="36" /><font size="4">用&quot;,&quot;分隔,如 
			qq,msn</font><input type="hidden" name="kd" id="kd" size="36" value="<%=Request.form("kda")%>" readonly="readonly"/></td></td>
		</tr>
		<tr>
			<td width="61">ping服务</td>
			<td><input name="sendping" type="checkbox" id="sendping" checked /></td>
		</tr>
	</table>
	<textarea name="content1" style="width:800px;height:450px;visibility:hidden;" rows="1" cols="20"></textarea><p>
	<input type="submit" name="button" id="button" value="提交" /></p>
	<link rel="stylesheet" href="../kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="../kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="../kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="../kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../kindeditor/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="content1"]', {
				cssPath : '../kindeditor/plugins/code/prettify.css',
				uploadJson : 'pages/editor/upload_json.asp',
				fileManagerJson : 'pages/editor/file_manager_json.asp',
				allowFileManager : true,
			});
			prettyPrint();
		});
	</script>
</form>
<%end if%>
</body>
</html>
<%end sub%>
<%sub newkind%><a href="?Fmenu=kindlist&title=分类">分类设置</a> | <a href="?Fmenu=newkind&title=分类">添加分类</a><hr width="1000px" align="left"><form method="POST" action="?Fmenu=savekind">
请输入分类的名称：<br><input type="text" name="name" size="22"><br><input type="submit" name="n1" value="提交"></form>
<%end sub%>
